<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<div id="contentmid">
<s:if test="#session.loggedUser != null">
    <div class="midheading">
        <h2>Ordini in sospeso</h2><br/>
    </div>
    
    <s:if test="ordiniUtente.size() != 0">
    <div class="midtxt">
    <table>
    <s:iterator value="ordiniUtente">
    
    
    
        		<tr>
        		<td><s:date name="data" format="dd/MM/yyyy"/></td>
        		<td><s:property value="nomeDestinatario"/></td>
        		<td><s:property value="cognomeDestinatario"/></td>
        		<td><s:property value="indirizzoSpedizione"/></td>
        		
        		<td>
                       <s:form action="dettaglio_ordine">
                           <s:hidden name="idOrdine" value="%{idOrdine}"/>
                           <s:submit type="image" src="img/catalogo/get-info-b.png"/>
                       </s:form>
                    </td>
        		
        		 </tr>
        		 

     
    </s:iterator>
    </table>
    
    </div>
   </s:if>
    <s:else>
    <div class="midtxt">
    Non hai ordini in sospeso
    </div>
    </s:else>


          
	<table>
    <tr></tr>
    <tr></tr>
    <tr>
        <td>
            <s:form action="ordini_evasi_utente">
                <s:submit value="Ordini Evasi"/>
            </s:form>
        </td>
        <td>
            <s:form action="ordini_rifiutati_utente">
                <s:submit value="Ordini Rifiutati"/>
            </s:form>
        </td>
    </tr>
    <tr>
        <td>
            <form>
                <input type="button" value="Indietro" onClick="javascript:history.back()"/>
            </form>
        </td>        
    </tr>
    </table>
    </s:if>
    <s:else>
        <h3><s:text name="message.notlogged"/></h3>
    </s:else>
</div>